-- GENERATED SPELL FOR [Blighted Zombie] --


function spell0_4475(pUnit, Event) --@Altered Cauldron Toxin,n/a--
pUnit:FullCastSpellOnTarget(17650,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4475', 599, 1)
end

function spell1_4475(pUnit, Event) --@Volatile Infection,n/a--
pUnit:FullCastSpellOnTarget(3584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4475', 2000, 1)
end

function Sorts_4475(pUnit, Event)
local choix_sorts_4475 = math.random(0, 1)
if choix_sorts_4475 == 0 then
pUnit:RegisterEvent('spell0_4475', 1, 1)
end
if choix_sorts_4475 == 1 then
pUnit:RegisterEvent('spell1_4475', 1, 1)
end
end

function mob4475_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4475', math.random(1500, 3000), 1)
end

function mob4475_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4475_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4475_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4475, 1, 'mob4475_Action')
RegisterUnitEvent(4475, 2, 'mob4475_Leave')
RegisterUnitEvent(4475, 3, 'mob4475_Kill')
RegisterUnitEvent(4475, 4, 'mob4475_Die')
